// test001View.cpp : implementation of the Ctest001View class
//

#include "stdafx.h"
#include "test001.h"

#include "test001Doc.h"
#include "test001View.h"

//#include "ImageProcess.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// Ctest001View

IMPLEMENT_DYNCREATE(Ctest001View, CView)

BEGIN_MESSAGE_MAP(Ctest001View, CView)
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, &CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, &CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, &CView::OnFilePrintPreview)
	ON_COMMAND(ID_HELP_TEST, &Ctest001View::OnHelpTest)
END_MESSAGE_MAP()

// Ctest001View construction/destruction

Ctest001View::Ctest001View()
{
	// TODO: add construction code here

}

Ctest001View::~Ctest001View()
{
}

BOOL Ctest001View::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

// Ctest001View drawing

void Ctest001View::OnDraw(CDC* /*pDC*/)
{
	Ctest001Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	if (!pDoc)
		return;

	// TODO: add draw code for native data here
}


// Ctest001View printing

BOOL Ctest001View::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void Ctest001View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void Ctest001View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}


// Ctest001View diagnostics

#ifdef _DEBUG
void Ctest001View::AssertValid() const
{
	CView::AssertValid();
}

void Ctest001View::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

Ctest001Doc* Ctest001View::GetDocument() const // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(Ctest001Doc)));
	return (Ctest001Doc*)m_pDocument;
}
#endif //_DEBUG


// Ctest001View message handlers

void Ctest001View::OnHelpTest()
{
	// TODO: Add your command handler code here

}
